package com.grieous.wow.entity;

import java.io.Serializable;
import java.util.List;

public class ArticleCategory implements Serializable {

	private static final long serialVersionUID = 1L;
	private Integer category;
	private List<Article> articleList;

	public Integer getCategory() {
		return category;
	}

	public void setCategory(Integer category) {
		this.category = category;
	}

	public List<Article> getArticleList() {
		return articleList;
	}

	public void setArticleList(List<Article> articleList) {
		this.articleList = articleList;
	}

	public String getCategoryName() {
		if (category == 1) {
			return "魔兽世界私服信息";
		} else if (category == 2) {
			return "魔兽私服相关信息";
		} else if (category == 3) {
			return "魔兽世界相关信息";
		} else {
			return "无";
		}
	}

	public ArticleCategory() {
		super();
	}

	public ArticleCategory(Integer category, List<Article> articleList) {
		super();
		this.category = category;
		this.articleList = articleList;
	}

}
